\declaretheoremstyle[name=Theorem,]{thmsty}
\declaretheorem[style=thmsty,numberwithin=section]{theorem}
\tcolorboxenvironment{theorem}{colback=LightGray}
\crefname{theorem}{定理}{定理}

\declaretheoremstyle[name=Proposition,]{prosty}
\declaretheorem[style=prosty,numberlike=theorem]{proposition}
\tcolorboxenvironment{proposition}{colback=LightOrange}
\crefname{proposition}{命题}{命题}

\declaretheoremstyle[name=Principle,]{prcpsty}
\declaretheorem[style=prcpsty,numberlike=theorem]{principle}
\tcolorboxenvironment{principle}{colback=LightGreen}
\crefname{principle}{原理}{原理}

\declaretheoremstyle[name=Definition,]{defsty}
\declaretheorem[style=defsty,numberlike=theorem]{definition}
\tcolorboxenvironment{definition}{colback=LightGray}
\crefname{definition}{定义}{定义}

\declaretheoremstyle[name=Corollary,]{colsty}
\declaretheorem[style=colsty,numberlike=theorem]{corollary}
\tcolorboxenvironment{corollary}{colback=LightGray}
\crefname{corollary}{推论}{推论}

\declaretheoremstyle[name=Lemma,]{lemsty}
\declaretheorem[style=lemsty,numberlike=theorem]{lemma}
\tcolorboxenvironment{lemma}{colback=LightGray}
\crefname{lemma}{引理}{引理}

% --- 例 (example) 环境设置 ---
\theoremstyle{definition}
\newtheorem{example}{例}
\counterwithin{example}{subsection}
\renewcommand{\theexample}{\arabic{example}} % 定义“例”的编号格式

% --- 解 (solution) 环境设置 ---
\theoremstyle{remark} % “解”使用 remark 样式
\newtheorem{solution}{解}
\counterwithin{solution}{subsection}
\renewcommand{\thesolution}{\arabic{solution}} % 定义“解”的编号格式

% --- 注 (remark) 环境设置 ---
\theoremstyle{remark} % “注”使用 remark 样式
\newtheorem{remark}{注}
\counterwithin{remark}{subsection}
\renewcommand{\theremark}{\arabic{remark}} % 定义“注”的编号格式